package com.example.clxy.service;

import com.example.clxy.entity.Course;
import com.example.clxy.result.PageResult;
import com.example.clxy.result.WebRestResult;
import com.example.clxy.result.business.CourseOneResult;
import com.example.clxy.result.business.PageResult.CoursePageResult;

/**
 * @Author liuhaoqi
 * @Date 2020/8/8 10:12
 * @Version 1.0
 */
public interface CourseService {
    WebRestResult addCourse(Course course);

    WebRestResult updateCourse(Course course);

    WebRestResult deleteCourse(String courseid);

    PageResult<CoursePageResult> getCourseList(int page, int pagesize, String coursename, String coursecode, String coursetype, String coursesemester);

    CourseOneResult getCourseById(String courseid);
}
